//
//  UIColor+BLColor.h
//  BLExtension
//
//  Created by huangbolun on 2018/1/11.
//  Copyright © 2018年 huangbolun. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (BLColor)


/**
 通过RGB初始化颜色

 @param red 0 ~ 255
 @param green 0 ~ 255
 @param blue 0 ~ 255
 @param alpha 0.0 ~ 1.0
 @return UIColor
 */
+ (UIColor *)bl_colorWithR:(NSInteger)red g:(NSInteger)green b:(NSInteger)blue a:(CGFloat)alpha;


/**
 通过Hex初始化颜色

 @param stringToConvert 色值的String
 @return UIColor
 */
+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;

/**
 随机生成一个颜色

 @return UIColor
 */
+ (UIColor *)bl_colorRandom;

@end
